Skip to content

fix(modal): allow pull-to-refresh with a custom scroll host - #31339

Merged
ShaneK merged 3 commits into
mainfrom
fix/31332
Aug 10, 2026
Merged

fix(modal): allow pull-to-refresh with a custom scroll host#31339
ShaneK merged 3 commits into
mainfrom
fix/31332

Conversation

@ShaneK

@ShaneK ShaneK commented Aug 7, 2026

Copy link
Copy Markdown
Member

Issue number: resolves #31332


What is the current behavior?

Currently, pulling down inside a sheet or card modal dismisses the modal instead of triggering the refresher when the content uses a custom scroll host.

What is the new behavior?

With this change, the gesture resolves the refresher from the enclosing ion-content when the swipe target is a custom scroll host, so pulling down runs the refresher and leaves the modal alone. The new findRefresherInContent util only reports a refresher for the scroll host that refresher actually scrolls with, which is the first one in the content, so a second unrelated scroll host still swipes the modal normally. The expandToScroll: false path now runs the same check.

Does this introduce a breaking change?

  • Yes
  • No

Other information

Test coverage is 4 e2e tests on the new page:

Test page (iOS)
Test page (MD)

Current dev build:

8.8.18-dev.11786385944.17aca7e5

@ShaneK
ShaneK requested a review from a team as a code owner August 7, 2026 13:08
@ShaneK
ShaneK requested a review from OS-jacobbell August 7, 2026 13:08
@vercel

vercel Bot commented Aug 7, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ionic-framework Ready Ready Preview Aug 10, 2026 6:22pm

Request Review

@github-actions github-actions Bot added the package: core @ionic/core package label Aug 7, 2026

@OS-jacobbell OS-jacobbell left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, great work!

@ShaneK
ShaneK added this pull request to the merge queue Aug 10, 2026
Merged via the queue into main with commit d6202a8 Aug 10, 2026
64 checks passed
@ShaneK
ShaneK deleted the fix/31332 branch August 10, 2026 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: core @ionic/core package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: The refresher is not working properly in the virtual scrolling list of the sheet modal

2 participants